//账号信息的ts类型

export interface ResponseData {
  code: number
  msg: string
  total: number
}

//代表一个账号信息的ts类型
export interface Film {
  id: number
  actors: string
  counts: number
  director: string
  intro: string
  isBanner: number | boolean
  isExist: number | boolean
  isHot: number | boolean
  movieLength: number
  name: string
  photo: string
  price: number
  time: number | any
  type: string
}

//数组包含全部的用户信息
export type Records = Film[]

// 获取全部用户信息接口返回的数据ts类型
export interface FilmResponseData extends ResponseData {
  data: {
    records: Records
    total: number
  }
}

//代表一个职位的ts类型
export interface RoleData {
  id?: number
  createTime?: string
  updateTime?: string
  roleName: string
  remark: null
}

//全部职位的列表
export type AllRole = RoleData[]

//获取全部职位的接口返回的数据ts类型
// export interface AllRoleResponseData extends ResponseData {
//     data: {
//         assignRoles: AllRole
//         allRolesList: AllRole
//     }
// }

//给用户分配职位接口携带参数的ts类型
export interface SetRoleData {
  roleIdList: number[]
  userId: number
}
